<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../../css/skin.css">
<link rel="stylesheet" type="text/css"
	href="../../css/easy-ui-themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../../css/easy-ui-themes/icon.css">
<script type="text/javascript" src="../../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../../js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>

<script type="text/javascript">
	function createAdmin() {
		if ($('#addAdminForm').form('validate') != true) {
			return;
		}
		AjaxSubmit2("../AdminAddRole.do?type=4&username="
				+ $("#ID").attr('value') + "&password="
				+ $("#password").attr('value'),

		"ajaxImg",

		"添加管理员:" + $("#ID").attr('value') + "密码:"
				+ $("#password").attr('value'),

		function(msg) {
			showAlert("成功提示", msg);
			$("#ID").attr('value','');
			$("#password").attr('value','');
		},

		function(msg) {
			showAlert("失败提示", msg);
		});
	}
</script>

</head>
<body class="body">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" valign="top" background="../../images/mail_leftbg.gif"><img
				src="../../images/left-top-right.gif" width="17" height="29" /></td>
			<td valign="top" background="../../images/content-bg.gif">
				<table width="100%" height="31" border="0" cellpadding="0"
					cellspacing="0" class="left_topbg" id="table2">
					<tr>
						<td height="31"><div class="titlebt">管理员创建</div></td>
					</tr>
				</table>
			</td>
			<td width="16" valign="top"
				background="../../images/mail_rightbg.gif"><img
				src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
		</tr>

		<tr>
			<td valign="bottom" background="../../images/mail_leftbg.gif"></td>
			<td valign="top" style="height:400px;background-color: white;">
				<!-- 这个是主要div -->
				<div style="margin-top:30px">

					<div style="text-align: center;">
						<form id="addAdminForm">
							<table style="margin-top: 15px;margin:auto;">

								<tr style="height: 30px">
									<td colspan="2" style='text-align: center; font-size: 14px'>创建管理员</td>
								</tr>
								<tr style="height: 30px">
									<td>用户名：</td>
									<td><input type="text" id="ID" name="ID" maxlength="20"
										class="easyui-validatebox"
										data-options="required:true,missingMessage:'不能为空'" /></td>
								</tr>
								<tr style="height: 30px">
									<td>密码:</td>
									<td><input type="password" id="password" name="password"
										maxlength="32" class="easyui-validatebox"
										data-options="required:true,missingMessage:'不能为空'" /></td>
								</tr>


								<tr>
									<td colspan="2" valign="middle"><a
										href="javascript:void(0)" id="ajaxLoginBtn"
										class="easyui-linkbutton" onclick='createAdmin();'>提交</a>
									</td>

								</tr>

							</table>
						</form>
					</div>


					<img src="../../images/loading.gif"
						style="display: none; height: 25px; width: 25px;" id="ajaxImg" />
				</div></td>
			<td valign="bottom" background="../../images/mail_rightbg.gif">
			</td>
		</tr>


		<tr>
			<td valign="bottom"><img src="../../images/buttom_left2.gif"
				width="17" height="17" /></td>
			<td background="../../images/buttom_bgs.gif"><img
				src="../../images/buttom_bgs.gif" width="17" height="17"></td>
			<td valign="bottom"><img src="../../images/buttom_right2.gif"
				width="16" height="17" /></td>
		</tr>

	</table>
	<div id="dialogid"></div>
	<div id="win"></div>
</body>
</html>



